package com.sx.code.dao;

import com.sx.code.entity.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AuthCodeRepository extends JpaRepository<AuthCode, Integer>, CrudRepository<AuthCode, Integer> {
    List<AuthCode> findAuthCodesByEmail(String email);
}
